import mods.modularmachinery.RecipePrimer;
import mods.modularmachinery.RecipeBuilder;
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.oredict.IOreDict;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.data.IData;

// Elementium Steel Block to Elven Crystal
RecipeBuilder.newBuilder("m_elementiumsteelblock_crystal","modular_elven_dissociator",810).
addItemInput(<botania:storage:2>*1).
addManaInput(8100).
addManaPerTickInput(10).
addItemOutput(<additions:hsadd-elvencrystal>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.08).
addItemOutput(<minecraft:iron_block>*1).setChance(0.85).
addItemOutput(<minecraft:iron_ingot>*9).setChance(0.1).
addItemOutput(<minecraft:iron_nugget>*81).setChance(0.05).
addManaOutput(16200).
addManaPerTickOutput(20).
build();

// Elementium Steel Ingot to Elven Crystal
RecipeBuilder.newBuilder("m_elementiumsteelingot_crystal","modular_elven_dissociator",90).
addManaInput(900).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:7>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.12).
addItemOutput(<minecraft:iron_ingot>*1).setChance(0.9).
addItemOutput(<minecraft:iron_nugget>*9).setChance(0.1).
addManaOutput(1800).
addManaPerTickOutput(20).
build();

// Elementium Steel Nugget to Elven Crystal
RecipeBuilder.newBuilder("m_elementiumsteelnugget_crystal","modular_elven_dissociator",10).
addManaInput(100).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:19>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.0133).
addItemOutput(<minecraft:iron_nugget>*1).setChance(0.95).
addManaOutput(200).
addManaPerTickOutput(20).
build();

// Pixie Dust to Elven Crystal
RecipeBuilder.newBuilder("m_pixiedust_crystal","modular_elven_dissociator",180).
addManaInput(1800).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:8>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.24).
addItemOutput(<minecraft:ender_pearl>*1).setChance(0.25).
addManaOutput(3600).
addManaPerTickOutput(20).
build();

// Dragonstone to Elven Crystal
RecipeBuilder.newBuilder("m_dragonstone_crystal","modular_elven_dissociator",300).
addManaInput(3000).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:9>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.4).
addItemOutput(<minecraft:diamond>*1).
addManaOutput(6000).
addManaPerTickOutput(20).
build();

// Dragonstone Block to Elven Crystal
RecipeBuilder.newBuilder("m_dragonstoneblock_crystal","modular_elven_dissociator",2700).
addManaInput(27000).
addManaPerTickInput(10).
addItemInput(<botania:storage:4>*1).
addItemOutput(<additions:hsadd-elvencrystal>*3).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.6).
addItemOutput(<minecraft:diamond_block>*1).setChance(0.9).
addItemOutput(<minecraft:diamond>*9).setChance(0.1).
addManaOutput(54000).
addManaPerTickOutput(20).
build();

// Elven Lapis to Elven Crystal
RecipeBuilder.newBuilder("m_elvenlapis_crystal","modular_elven_dissociator",150).
addManaInput(1500).
addManaPerTickInput(10).
addItemInput(<botanicadds:elven_lapis>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.2).
addItemOutput(<minecraft:dye:4>*1).
addManaOutput(3000).
addManaPerTickOutput(20).
build();

// Elven Lapis Block to Elven Crystal
RecipeBuilder.newBuilder("m_elvenlapisblock_crystal","modular_elven_dissociator",1350).
addManaInput(13500).
addManaPerTickInput(10).
addItemInput(<botanicadds:elven_lapis_block>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).
addItemOutput(<additions:hsadd-elvencrystal>*1).setChance(0.8).
addItemOutput(<minecraft:lapis_block>*1).setChance(0.9).
addItemOutput(<minecraft:dye:4>*9).setChance(0.1).
addManaOutput(27000).
addManaPerTickOutput(20).
build();
